package com.ruoyi.common.config;

import com.qcloud.cos.COSClient;
import com.qcloud.cos.ClientConfig;
import com.qcloud.cos.auth.BasicCOSCredentials;
import com.qcloud.cos.auth.COSCredentials;
import com.qcloud.cos.region.Region;

public class lphCosConfig {
    static String endpoint = "ap-guangzhou";
    static String accessKeyId = "AKIDY1IMBpGTRBi2B7qMeqqW0GKBqGSRtCJG";
    static String SecretKey = "oOlupWzDF4g6LPGvNdfT3UhiV9ZnpeFb";
    static String bucket = "teach-1-1314343159";

    public COSClient cosClient()
    {
        COSCredentials cred = new BasicCOSCredentials(accessKeyId,SecretKey);
        ClientConfig clientConfig = new ClientConfig(new Region(endpoint));
        COSClient cosClient = new COSClient(cred, clientConfig);
        return cosClient;
    }
    public String getbucket(){
        return bucket;
    }
}
